package data.nanjing.expo.models.domain.trade;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 存储用户作为服务商和展商有哪些服务
 *
 * @author ChanJi
 * @create 2018-06-08 17:53
 **/
public class UserService {
    private Integer id;
    /**
     * 用户id
     * user_id
     */
    private Integer userId;
    /**
     * 服务id
     * service_id
     */
    private Integer serviceId;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtModify;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getServiceId() {
        return serviceId;
    }

    public void setServiceId(Integer serviceId) {
        this.serviceId = serviceId;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModify() {
        return gmtModify;
    }

    public void setGmtModify(Date gmtModify) {
        this.gmtModify = gmtModify;
    }

    @Override
    public String toString() {
        return "UserService{" +
                "id=" + id +
                ", userId=" + userId +
                ", serviceId=" + serviceId +
                ", gmtCreat=" + gmtCreate +
                ", gmtModify=" + gmtModify +
                '}';
    }
}
